﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace WCS.Infrastructure.EFCore;

/// <summary>
/// 系统角色表
/// </summary>
[Table("Sys_Role")]
public partial class SysRole
{
    /// <summary>
    /// 系统角色ID
    /// </summary>
    [Key]
    [StringLength(32)]
    public string Id { get; set; } = null!;

    /// <summary>
    /// 角色名称
    /// </summary>
    [StringLength(255)]
    public string RoleName { get; set; } = null!;

    /// <summary>
    /// 角色类型(0=平台超管，1=平台管理，2=超管，3=管理，4=监事，5=店长，6=收银员，7=业主，8=招商，9=城市合伙人，10=运营，11=技术，12=会员)
    /// </summary>
    public int? RoleType { get; set; }

    /// <summary>
    /// 角色描述
    /// </summary>
    [StringLength(255)]
    public string? Description { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime CreationTime { get; set; }

    /// <summary>
    /// 组织类型（0=平台，1=商户，2=门店）
    /// </summary>
    public int? OrganizationType { get; set; }
}
